﻿@{
    Layout = null;
    string startDate=ViewBag.startDate;
    string endDate= ViewBag.endDate;
}
@*@model DotNet.JCore.Entity.InspectorRegistrationSum*@
@model PageList<DotNet.JCore.Entity.InspectorRegistrationSum>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <title>西安市班线客运安全管理系统</title>
    <link href="~/www/css/style.css" rel="stylesheet" />
    <link href="~/www/js/skin/WdatePicker.css" rel="stylesheet" />
    <style>
        .lcSubfh {
            width: 94%;
            line-height: 2em;
            padding: 1%;
            background: #204c95;
            border: none;
            color: #fff;
            font-family: '微软雅黑';
            font-size: 1em;
            border-radius: 5px;
            margin: 5% 2%;
        }
    </style>
</head>
<body>
    <a class="homeLinks" href="@Url.Action("home","M_login")">返回主页</a>
    <div class="djcCen">
        <div class="djcCenHea"><span></span>稽查统计-@ViewBag.InspectorsName</div>
        @*<div class="djcCenFor"><form>
        <input id="startDate" class="Wdate" value="@DateTimeHelper.FormatDate(DateTime.Now.Date,"yyyy-MM-dd")" onFocus="WdatePicker({lang:'zh-cn'})"/>
        <input id="endDate" class="Wdate" onFocus="WdatePicker({lang:'zh-cn'})" placeholder="请选择结束日期"/>
        <input id="btnSubmit" type="button" value="搜索" class="djcCFBut" /></form></div>*@

        <div class="djcCenTab">
            <form action="@Url.Action("Index","M_Auditstatistics")" method="post">
                <div class="djcCenFor">
                    @if (startDate == null)
                    { 
                        <input id="startDate" name="startDate" class="Wdate" value="@DateTimeHelper.FormatDate(DateTime.Now.Date,"yyyy-MM-dd")" onFocus="WdatePicker({lang:'zh-cn'})" />
                    }
                    else
                    {
                        <input id="startDate" name="startDate" class="Wdate" value="@ViewBag.startDate" onFocus="WdatePicker({lang:'zh-cn'})" />
                    }
                    @if (endDate == null)
                    {
                        <input id="endDate" name="endDate" class="Wdate" onFocus="WdatePicker({lang:'zh-cn'})" placeholder="请选择结束日期" />
                    }
                    else
                    {
                        <input id="endDate" name="endDate" class="Wdate" value="@ViewBag.endDate" onFocus="WdatePicker({lang:'zh-cn'})" />
                    }                     
                 @*<input id="btnSubmit" type="submit" value="查询" class="djcCFBut" />*@
                    <button id="btnSubmit" class="djcCFBut" type="submit">
                        <i class="fa fa-search"></i> 查询
                    </button>
                </div>
                <div class="djcCenNum">共搜索到<b>@ViewBag.Count</b>条符合条件的信息</div>
@foreach (var record in Model)
{
                <table class="djcCTDri" style="margin-top:20px">
                    @*<tr><td>统计日期</td><td>@DateTimeHelper.FormatDate(@record.checkinTime)</td><td>检查点</td><td>@record.pointName</td></tr>
                    <tr><td>登记数</td><td>@record.registrationNo</td><td>正常数</td><td>@record.normalNo</td></tr>
                    <tr><td>违规数</td><td>@record.violationNo</td><td>手工登记数</td><td>@record.ManualregistrationNo</td></tr>
                    <tr><td>手工登记正常数</td><td>@record.ManualNormalNo</td><td>手工登记违规数</td><td>@record.ManualviolationNo</td></tr>*@
                    <tr><td>统计日期</td><td>@DateTimeHelper.FormatDate(@record.checkinTime)</td><td>检查点</td><td>@ViewBag.PointName</td></tr>
                    <tr><td>系统登记数</td><td>@record.registrationNo</td><td>手工登记数</td><td>@record.ManualregistrationNo</td></tr>
                    <tr><td>正常数</td><td><span style="color:lightgreen; font-weight:800;">@record.normalNo</span></td><td>手工登记正常数</td><td><span style="color:lightgreen; font-weight:800;">@record.ManualNormalNo</span></td></tr>
                    <tr><td>违规数</td><td><span style="color:red;  font-weight:800;">@record.violationNo</span></td><td>手工登记违规数</td><td><span style="color:red;  font-weight:800;">@record.ManualviolationNo</span></td></tr>
                </table>
}
                <input id="submit" name="submit" type="submit" value="返回" class="lcSubfh" />
            </form>
        </div>
    </div>
    @Html.LocalImport("~/www/js/WdatePicker.js")
    @Html.CdnImport("~/lib/jquery/jquery.js")
    @Html.CdnImport("~/lib/jquery-storageapi/jquery-storageapi.js")
    <input id="InspectorsName" value="@ViewBag.InspectorsName" type="hidden" />
</body>
</html>

  
